/**
 *    SPDX-License-Identifier: Apache-2.0
 */

import React from 'react';
import { HashRouter as Router, Route, Switch,Redirect } from 'react-router-dom';
import Layout from './Layout/index';
import Home from "./Page/Home";
import Info from "./Page/Info";
import Affair from "./Page/Affair";
import Chain from "./Page/Chain";
import Network from "./Page/Network";
// <Route exact path='/' component={Layout} />
const Main = () =>
  (
     
        <div className="App">
          <Switch>
            
            <Redirect exact path="/" to="/home" />
            <Route  path='/home' component={Home} />
            <Route  path='/network' component={Network} />
            <Route  path='/info' component={Info} />
            <Route  path='/affair' component={Affair} />
            <Route  path='/chain' component={Chain} />
          </Switch>
        </div>
      
  )

export default Main
